package com.lody.virtual.helper.compat;
import android.os.Build;
public class BuildCompat {
    public static int getPreviewSDKInt() {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            try {
                return Build.VERSION.PREVIEW_SDK_INT;
            } catch (Throwable e) {
            }
        }
        return 0;
    }
    public static boolean isOreo() {
        return (Build.VERSION.SDK_INT == 25 && getPreviewSDKInt() > 0) || Build.VERSION.SDK_INT > 25;
    }
}